home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1988 / Apr 88 / MacApp datafields 4⁄5 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.3 KB  |  80 lines  |  [TEXT/GEOL]

  1. Item    5064610                         5-April-88        11:34
  2.  
  3. From:   N0658                           ESL, Robert Penland, ASC
  4.  
  5. To:     MACAPP$                         MacApp Interest List
  6.  
  7. Sub:    MacApp datafields
  8.  
  9.  
  10.    The development on my MacApp appletalk unit is continuing
  11. slowly.  Another question has arisen though (as they always do).
  12. Are the data fields of a object fixed?  That is, if I have a record
  13. structure like the following:
  14.  
  15.  
  16.  
  17.  
  18.  
  19. DSPCommand=RECORD
  20.  
  21.    Command1:INTEGER;
  22.  
  23.    Command2:INTEGER;
  24.  
  25.    Command3:Str255;
  26.  
  27.    END;
  28.  
  29.  
  30.  
  31.  
  32.  
  33. and a Document Object with a data field fDSPCommand of type
  34. DSPCommand. Then if I Have a requester object with a data field
  35. that keeps a reference to the document
  36. (i.e. fNothingDocument:TNothingDocument) can I use the following
  37. method to get a pointer to the data structure and will the pointer
  38. remain valid if there is a dreaded heap compaction?
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48. PROCEDURE TMyRequester.GiveRequestPtr(aByteCount:INTEGER;VAR
  49.    aDataPtr:Ptr);OVERRIDE;
  50.  
  51.  
  52.  
  53.    BEGIN
  54.  
  55.    aDataPtr:=@SELF.fNothingDocument.fDSPCommand;
  56.  
  57.    END;
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Thanks,
  64.  
  65. Wanna-be technoid
  66.  
  67. Robert Penland
  68.  
  69.  
  70.  
  71.  
  72.  
  73. P.S. a Note to Guillermo Ortiz, I still haven't received any of the
  74. literature on the Color table and Palette Manager that you said was
  75. forth coming.
  76.  
  77.  
  78.  
  79.  
  80.